<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html lang="zh-CN">

    <head>

        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, shrink-to-fit=no, initial-scale=1">
        <meta name="description" content="">
        <meta name="author" content="">

        <title>欢迎进入教务管理系统</title>

        <!-- Bootstrap Core CSS -->
        <link href="<%=request.getContextPath()%>/css/common_css/bootstrap_css/bootstrap.min.css" rel="stylesheet">

        <!-- Custom CSS -->
        <link href="<%=request.getContextPath()%>/css/common_css/sidebar_css/sidebar.css" rel="stylesheet">

        <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
            <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
            <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
    </head>

    <body>

        <div id="wrapper">

            <!-- Sidebar -->
            <div id="sidebar-wrapper">
                <ul class="sidebar-nav">

                    <!-- 标题 -->
                    <li class="sidebar-brand">
                        <a href="#">
                            教务管理系统

                    <!-- 选课子系统 -->
                    <li>
                    <a href="javascript:;" data-toggle="collapse" data-target="#selection">操作</a>
                    <ul id = "selection" class="collapse">
                             <s:if test="#session.get('stutype')!=null">
                                <li>
                                    <a href="showCourseInfoAction!showCourseInfo?ctype=${'a'}&stuid=${stuid}&term=${'0'}">我的课程</a>
                                </li>
                             </s:if>
                             <s:if test="#session.get('teatype')!=null">
                                 <li>
                                    <a href="studentSelectionInfoAction!showStuSelInfo?teaid=${stuid}">学生选课信息</a>
                            </li>
                          </s:if>
                          <s:if test="#session.get('admintype')!=null">
                             <li>
                               <a href="showSelectSituAction!showSelectSitu?admin=${'admin'}">信息统计</a>
                                  </li>
                               </s:if>
                        </ul>
                    </li>

                    <!-- 登录 -->
                    <li>
                        <a href="login.jsp">登录</a>
                    </li>

                    <li>
                        <a href="#">关于本站</a>
                    </li>
                </ul>
            </div>
            <!-- /#sidebar-wrapper -->

            <!-- Page Content -->
            <div id="page-content-wrapper">
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-lg-12">
                            <h1>入口</h1>
                            <a href="#menu-toggle" class="btn btn-default" id="menu-toggle">菜单</a>
                        </div>
                    </div>
                </div>
            </div>
            <!-- /#page-content-wrapper -->

        </div>
        <!-- /#wrapper -->

        <!-- jQuery -->
        <script src="<%=request.getContextPath()%>/js/common_js/jquery/jquery.min.js"></script>

        <!-- Bootstrap Core JavaScript -->
        <script src="<%=request.getContextPath()%>/js/common_js/bootstrap_js/bootstrap.min.js"></script>

        <!-- Menu Toggle Script -->
        <script>
        $("#menu-toggle").click(function(e) {
            e.preventDefault();
            $("#wrapper").toggleClass("toggled");
        });
        </script>
    </body>

</html>
